home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / includes / pmqueries.h < prev    next >
C/C++ Source or Header  |  1996-11-18  |  13KB  |  330 lines

  1. /*
  2.  *--- PageMakerQueries.h --------------------------------------------
  3.  * Copyright 1990-95 Adobe Systems, Inc.  All rights reserved.
  4.  *
  5.  *  This contains the declarations of all the PageMaker
  6.  *    query callbacks.
  7.  *
  8.  * $Revision:   1.10  $
  9.  *
  10.  *
  11.  *
  12.  *------------------------------------------------------------------- */
  13. #ifndef __PageMakerQueries__
  14. #define __PageMakerQueries__
  15. #ifdef __MWERKS__
  16. #pragma once
  17. #endif// Query Section:
  18. #define pm_a_queries        2000
  19. #define pm_b_queries        2100
  20. #define pm_c_queries        2200
  21. #define pm_d_queries        2300
  22. #define pm_e_queries        2400
  23. #define pm_f_queries        2500
  24. #define pm_g_queries        2600
  25. #define pm_h_queries        2700
  26. #define pm_i_queries        2800
  27. #define pm_j_queries        2900
  28. #define pm_k_queries        3000
  29. #define pm_l_queries        3100
  30. #define pm_m_queries        3200
  31. #define pm_n_queries        3300
  32. #define pm_o_queries        3400
  33. #define pm_p_queries        3500
  34. #define pm_q_queries        3600
  35. #define pm_r_queries        3700
  36. #define pm_s_queries        3800
  37. #define pm_t_queries        3900
  38. #define pm_u_queries        4000
  39. #define pm_v_queries        4100
  40. #define pm_w_queries        4200
  41. #define pm_x_queries        4300
  42. #define pm_y_queries        4400
  43. #define pm_z_queries        4500
  44. #define pm_maxquery            4999    
  45. //---------------------------------------------------------    
  46. //    Query Section: Organized alphabetically    
  47. //---------------------------------------------------------
  48. typedef enum{
  49.     
  50.     // 'A' Queries:
  51.     pm_getacrobathandle            = ( pm_a_queries + 4),
  52.     pm_getadditions                = ( pm_a_queries + 0),
  53.     pm_getadditionsdir            = ( pm_a_queries + 3),
  54.     pm_getalignment                = ( pm_a_queries + 1),
  55.     pm_getautoflow                = ( pm_a_queries + 2),
  56.  
  57.     // 'B' Queries:
  58.     pm_getbasedon                = ( pm_b_queries + 0),
  59.     pm_getblackattributes        = ( pm_b_queries + 2),
  60.     pm_getbook                    = ( pm_b_queries + 1),
  61.  
  62.     // 'C' Queries:
  63.     pm_getcase                    = ( pm_c_queries + 0),
  64.     pm_getchangeparaattr        = ( pm_c_queries + 11),
  65.     pm_getchangetypeattr1        = ( pm_c_queries + 12),
  66.     pm_getchangetypeattr2        = ( pm_c_queries + 13),
  67.     pm_getchangewindow            = ( pm_c_queries + 10),
  68.     pm_getcolor                    = ( pm_c_queries + 1),
  69.     pm_getcolorinfo                = ( pm_c_queries + 2),
  70.     pm_getcolornames            = ( pm_c_queries + 3),
  71.     pm_getcolorpalette            = ( pm_c_queries + 4),
  72.     pm_getcolumnguides            = ( pm_c_queries + 5),
  73.     pm_getcontrolpalette        = ( pm_c_queries + 6),
  74.     pm_getconvertstr            = ( pm_c_queries + 8),
  75.     pm_getconverttwips            = ( pm_c_queries + 9),
  76.     pm_getcroprect                = ( pm_c_queries + 7),
  77.     pm_getcroprectbox            = ( pm_c_queries + 16),
  78.     pm_getcroprectbyid            = ( pm_c_queries + 17),
  79.     pm_getprinter                = ( pm_c_queries + 14),
  80.     pm_getcmson                    = ( pm_c_queries + 15),
  81.  
  82.     // 'D' Queries:
  83.     pm_getdefaultdir            = ( pm_d_queries + 0),
  84.     pm_getdictionary            = ( pm_d_queries + 1),
  85.     pm_getdisplayspecial        = ( pm_d_queries + 2),
  86.     pm_getdisplaystylenames        = ( pm_d_queries + 3),
  87.     pm_getdefaultprintclrspc    = ( pm_d_queries + 4),
  88.  
  89.     // 'E' Queries:
  90.     pm_getexportfilters            = ( pm_e_queries + 0),
  91.     pm_getepsfontlist            = ( pm_e_queries + 1),
  92.  
  93.     // 'F' Queries:
  94.     pm_getfindparaattr            = ( pm_f_queries + 7),
  95.     pm_getfindtypeattr1            = ( pm_f_queries + 8),
  96.     pm_getfindtypeattr2            = ( pm_f_queries + 9),
  97.     pm_getfindwindow            = ( pm_f_queries + 6),
  98.     pm_getfillandline            = ( pm_f_queries + 4),
  99.     pm_getfilllinedlg            = ( pm_f_queries + 5),
  100.     pm_getfillstyle                = ( pm_f_queries + 0),
  101.     pm_getfont                    = ( pm_f_queries + 1),
  102.     pm_getfontdrawing            = ( pm_f_queries + 2),
  103.     pm_getfontlist                = ( pm_f_queries + 3),
  104.     pm_getframecontentpos        = ( pm_f_queries + 10),
  105.     pm_getframeinset            = ( pm_f_queries + 11),
  106.     pm_getframecontenttype        = ( pm_f_queries + 12),
  107.     pm_getnextframe                = ( pm_f_queries + 13),
  108.     pm_getisframe                = ( pm_f_queries + 14),
  109.  
  110.     // 'G' Queries:
  111.     pm_getguides                = ( pm_g_queries + 0),
  112.     pm_getgrouplist                = ( pm_g_queries + 1),
  113.  
  114.     // 'H' Queries:
  115.     pm_gethorizguides            = ( pm_h_queries + 0),
  116.     pm_gethyphenation            = ( pm_h_queries + 1),
  117.     pm_gethyperlinkinfo            = ( pm_h_queries + 5),
  118.     pm_gethyperlinkpalette        = ( pm_h_queries + 2),
  119.     pm_gethyperlinkcount        = ( pm_h_queries + 3),
  120.     pm_gethyperlinks            = ( pm_h_queries + 4),
  121.  
  122.     // 'I' Queries:
  123.     pm_getimageframe            = ( pm_i_queries + 0),
  124.     pm_getimageframebyid        = ( pm_i_queries + 12),
  125.     pm_getimportfilters            = ( pm_i_queries + 1),
  126.     pm_getindents                = ( pm_i_queries + 2),
  127.     pm_getinknd                    = ( pm_i_queries + 3),
  128.     pm_getinkinfo                = ( pm_i_queries + 4),
  129.     pm_getinknames                = ( pm_i_queries + 5),
  130.     pm_getinlinegraphicinfo        = ( pm_i_queries + 11),
  131.     pm_getixbookmark            = ( pm_i_queries + 6),
  132.     pm_getixbookmarkcount        = ( pm_i_queries + 7),
  133.     pm_getixhyperlink            = ( pm_i_queries + 8),
  134.     pm_getixhyperlinkcount        = ( pm_i_queries + 9),
  135.     pm_getixtitlebookmark        = ( pm_i_queries + 10),
  136.  
  137.     // 'K' Queries:
  138.     pm_getkern                    = ( pm_k_queries + 0),
  139.     pm_getkerntext                = ( pm_k_queries + 1),
  140.  
  141.     // 'L' Queries:
  142.     pm_getlasterror                = ( pm_l_queries + 0),
  143.     pm_getlasterrorstr            = ( pm_l_queries + 1),
  144.     pm_getlayerlist                = ( pm_l_queries + 14),
  145.     pm_getlayeroptions            = ( pm_l_queries + 15),
  146.     pm_getleading                = ( pm_l_queries + 2),
  147.     pm_getletterspace            = ( pm_l_queries + 3),
  148.     pm_getlibcolorinfo            = ( pm_l_queries + 11),
  149.     pm_getlibinfo                = ( pm_l_queries + 12),
  150.     pm_getlinebreak                = ( pm_l_queries + 4),
  151.     pm_getlinebreakloc            = ( pm_l_queries + 5),
  152.     pm_getlinestyle                = ( pm_l_queries + 6),
  153.     pm_getlinkinfo                = ( pm_l_queries + 7),
  154.     pm_getlinkoptions            = ( pm_l_queries + 8),
  155.     pm_getlinks                    = ( pm_l_queries + 9),
  156.     pm_getlockguides            = ( pm_l_queries + 10),
  157.     pm_getlock                    = ( pm_l_queries + 13),
  158.     pm_getlayadjopts            = ( pm_l_queries + 16),
  159.     pm_getlayerpalette            = ( pm_l_queries + 17),
  160.     pm_getlayerfromid            = ( pm_l_queries + 18),
  161.  
  162.     // 'M' Queries
  163.     pm_getmasteritems            = ( pm_m_queries + 0),
  164.     pm_getmeasureunits            = ( pm_m_queries + 1),
  165.     pm_getmultpasteoffset        = ( pm_m_queries + 2),
  166.     pm_getmasterpagepalette        = (    pm_m_queries + 4),
  167.     pm_getmasterpage            = ( pm_m_queries + 5),
  168.     pm_getmasterpagename        = ( pm_m_queries + 6),
  169.     pm_getmasterpageinfo        = ( pm_m_queries + 7),
  170.     pm_getmasterpagelist        = ( pm_m_queries + 8),
  171.  
  172.     // 'N' Queries:
  173.     pm_getnextstyle                = ( pm_n_queries + 0),
  174.     pm_getdisplaynonprinting    = ( pm_n_queries + 1),
  175.     pm_getnonprinting            = ( pm_n_queries + 2),
  176.  
  177.     // 'O' Queries:
  178.     pm_getobjectidlist            = ( pm_o_queries + 2),
  179.     pm_getobjectlist            = ( pm_o_queries + 0),
  180.     pm_getobjectloc                = ( pm_o_queries + 1),
  181.  
  182.     // 'P' Queries:
  183.     pm_getpageimage                = ( pm_p_queries + 0),
  184.     pm_getpagemargins            = ( pm_p_queries + 1),
  185.     pm_getpagenumber            = ( pm_p_queries + 2),
  186.     pm_getpagenumbers            = ( pm_p_queries + 3),
  187.     pm_getpageoptions            = ( pm_p_queries + 4),
  188.     pm_getpagerect                = ( pm_p_queries + 5),
  189.     pm_getpages                    = ( pm_p_queries + 6),
  190.     pm_getpagesize                = ( pm_p_queries + 7),
  191.     pm_getparaoptions            = ( pm_p_queries + 8),
  192.     pm_getparaspace                = ( pm_p_queries + 9),
  193.     pm_getpminfo                = ( pm_p_queries + 10),
  194.     pm_getpmstate                = ( pm_p_queries + 11),
  195.     pm_getpreferences            = ( pm_p_queries + 12),
  196.     pm_getprinterresol            = ( pm_p_queries + 41),
  197.     pm_getpubname                = ( pm_p_queries + 13),
  198.     pm_getpubwindowrect            = ( pm_p_queries + 14),
  199.     pm_getpubwindows            = ( pm_p_queries + 15),
  200.     pm_getprintcaps                = ( pm_p_queries + 16),
  201.     pm_getprintcolor            = ( pm_p_queries + 17),
  202.     pm_getprintdoc                = ( pm_p_queries + 18),
  203.     pm_getprintink                = ( pm_p_queries + 19),
  204.     pm_getprintoptions            = ( pm_p_queries + 20),
  205.     pm_getprintoptionsps        = ( pm_p_queries + 21),
  206.     pm_getprintpaperps            = ( pm_p_queries + 22),
  207.     pm_getprintps                = ( pm_p_queries + 23),
  208.     pm_getprintscreens            = ( pm_p_queries + 24),
  209.     pm_getprintto                = ( pm_p_queries + 25),
  210.     pm_getpapersources            = ( pm_p_queries + 26),
  211.     pm_getpapersizes            = ( pm_p_queries + 27),
  212.     pm_getprintppds                = ( pm_p_queries + 28),
  213.     pm_getprinterlist            = ( pm_p_queries + 29),
  214.     pm_getpolygonattribs        = ( pm_p_queries + 40),
  215.     pm_getprivatedata            = ( pm_p_queries + 30),
  216.     //string4 vendID, string4 addnID, word targetclass (convert to CIX), ulong usercontext, ulong targetRID
  217.     //return size, flags, and handle to data retrieved  
  218.     pm_getprivatestring            = ( pm_p_queries + 31),
  219.     //string4 vendID, string4 addnID, word targetclass (convert to CIX), ulong usercontext, ulong targetRID
  220.     //return flags, and private data string
  221.     pm_getprivatelist            = ( pm_p_queries + 32),
  222.     //string4 vendID, string4 addnID, word targetclass (convert to CIX), ulong usercontext
  223.     //return Count: vendID, addnID, targetclass, usercontext, object id,flags, size, 
  224.     //Note: Since input vendID, addnID, class, and usercontext can be dontcare (i.e., get 'all', need to return these)
  225.     //This query is intended for debugging/testing purposes.
  226.     pm_getpageid                = ( pm_p_queries + 33),
  227.     pm_getpagenumberbyid        = ( pm_p_queries + 34),
  228.     pm_getpickers                = ( pm_p_queries + 35),
  229.     pm_getprintfeaturetitles    = ( pm_p_queries + 36),
  230.     pm_getprintfeatureitems        = ( pm_p_queries + 37),
  231.     pm_getprintfeature            = ( pm_p_queries + 38),
  232.     pm_getprinterstyles            = ( pm_p_queries + 39),
  233.     pm_getppdfontlocation        = ( pm_p_queries + 42),
  234.     pm_getpmlanguage            = ( pm_p_queries + 43),
  235.  
  236.     pm_getpasteremembers        = ( pm_p_queries + 44),
  237.  
  238.     pm_getpolygontype            = ( pm_p_queries + 45),
  239.     pm_getpolygonmiterlimit        = ( pm_p_queries + 46),
  240.     pm_getpolygonvertices        = ( pm_p_queries + 47),
  241.     pm_getpagehistory            = ( pm_p_queries + 48),
  242.     pm_getpalettefontinfo        = ( pm_p_queries + 49),
  243.  
  244.     // 'R' Queries:
  245.     pm_getrotation                = ( pm_r_queries + 0),
  246.     pm_getroundedcorners        = ( pm_r_queries + 1),
  247.     pm_getruleabove                = ( pm_r_queries + 2),
  248.     pm_getrulebelow                = ( pm_r_queries + 3),
  249.     pm_getruleoptions            = ( pm_r_queries + 4),
  250.     pm_getrulers                = ( pm_r_queries + 5),
  251.     pm_getrecorder                = ( pm_r_queries + 6),
  252.  
  253.     // 'S' Queries:
  254.     pm_getscreenfont            = ( pm_s_queries + 0),
  255.     pm_getscrollbars            = ( pm_s_queries + 1),
  256.     pm_getselectidlist            = ( pm_s_queries + 18),
  257.     pm_getselectlist            = ( pm_s_queries + 2),
  258.     pm_getselectinfo            = ( pm_s_queries + 13),
  259.     pm_getshowerroralert        = ( pm_s_queries+17),
  260.     pm_getsize                    = ( pm_s_queries + 3),
  261.     pm_getsnaptoguides            = ( pm_s_queries + 4),
  262.     pm_getsnaptorulers            = ( pm_s_queries + 5),
  263.     pm_getspaceoptions            = ( pm_s_queries + 6),
  264.     pm_getspellresult            = ( pm_s_queries + 20),
  265.     pm_getspellwindow            = ( pm_s_queries + 19),
  266.     pm_getstoryeditpref            = ( pm_s_queries + 7),
  267.     pm_getstoryid                = ( pm_s_queries + 22),
  268.     pm_getstoryidlist            = ( pm_s_queries + 14),
  269.     pm_getstorylist                = ( pm_s_queries + 8),
  270.     pm_getstorytext                = ( pm_s_queries + 9),
  271.     pm_getstyle                    = ( pm_s_queries + 10),
  272.     pm_getstylenames            = ( pm_s_queries + 11),
  273.     pm_getstylepalette            = ( pm_s_queries + 12),
  274.     pm_getsuppressautosave        = ( pm_s_queries + 21),
  275.     pm_getsuppresspaldraw        = ( pm_s_queries+16),
  276.     pm_getsupressprint            = ( pm_s_queries + 15),
  277.     pm_getsuppressprint            = ( pm_s_queries + 15),
  278.     pm_getsavestatus            = ( pm_s_queries + 23),
  279.  
  280.     // 'T' Queries:
  281.     pm_gettabs                    = ( pm_t_queries + 0),
  282.     pm_gettargetprinter            = ( pm_t_queries + 1),
  283.     pm_gettextbounds            = ( pm_t_queries + 2),
  284.     pm_gettextlocation            = ( pm_t_queries + 15),
  285.     pm_gettextcursor            = ( pm_t_queries + 11),
  286.     pm_gettextrun                = ( pm_t_queries + 12),
  287.     pm_gettextwrap                = ( pm_t_queries + 3),
  288.     pm_gettextwrappoly            = ( pm_t_queries + 4),
  289.     pm_gettint                    = ( pm_t_queries + 14),
  290.     pm_gettocbookmark            = ( pm_t_queries + 21),
  291.     pm_gettocbookmarkcount        = ( pm_t_queries + 22),
  292.     pm_gettochyperlink            = ( pm_t_queries + 23),
  293.     pm_gettochyperlinkcount        = ( pm_t_queries + 24),
  294.     pm_gettocindexid            = ( pm_t_queries + 13),
  295.     pm_gettoctitlebookmark        = ( pm_t_queries + 25),
  296.     pm_gettoolbox                = ( pm_t_queries + 5),
  297.     pm_gettrack                    = ( pm_t_queries + 6),
  298.     pm_gettransform                = ( pm_t_queries + 7),
  299.     pm_gettool                    = ( pm_t_queries + 17),
  300.     pm_getobjectidlisttop        = ( pm_t_queries + 18),
  301.     pm_getselectidlisttop        = ( pm_t_queries + 19),
  302.     pm_gettrapsettings            = ( pm_t_queries + 16),
  303.     pm_gettypeoptions            = ( pm_t_queries + 8),
  304.     pm_gettypeposition            = ( pm_t_queries + 9),
  305.     pm_gettypestyle                = ( pm_t_queries + 10),
  306.     pm_getnobreak                = ( pm_t_queries + 20),
  307.     pm_gettargetlayer            = ( pm_t_queries + 26),
  308.  
  309.     // 'U' Queries:
  310.     pm_getprintscreenrgbs        = ( pm_u_queries + 0),
  311.     pm_getprintepspreviews        = ( pm_u_queries + 1),
  312.  
  313.     // 'V' Queries:
  314.     pm_getvertguides            = ( pm_v_queries + 0),
  315.     pm_getview                    = ( pm_v_queries + 1),
  316.  
  317.     // 'W' Queries:
  318.     pm_getwidth                    = ( pm_w_queries + 0),
  319.     pm_getwordspace                = ( pm_w_queries + 1),
  320.  
  321.     // 'X' Queries:
  322.     // 'Y' Queries:
  323.  
  324.     // 'Z' Queries:
  325.     // out of order for compatability
  326.     pm_getzerolock                = ( pm_z_queries + 1),
  327.     pm_getzeropoint                = ( pm_z_queries + 0)
  328.     
  329. } ePMQuery;
  330. #endif // end of PageMakerQueries.h